import { DashboardOutlined } from '@ant-design/icons';

export default {
  token: 'token',
};

interface IPermissiomMap {
  [key: string]: {
    componentPath: string;
    path: string;
    mate: {
      isMenu: boolean;
      icon: JSX.Element;
      label: string;
    };
  };
}

export const permissionMap: IPermissiomMap = {
  'role-manager': {
    componentPath: './pages/permission/role/index',
    path: '/role',
    mate: {
      isMenu: true,
      icon: <DashboardOutlined />,
      label: '角色管理',
    },
  },
  upload: {
    componentPath: './pages/upload/index',
    path: '/upload',
    mate: {
      isMenu: true,
      icon: <DashboardOutlined />,
      label: '文件上传',
    },
  },
  'upload-story': {
    componentPath: './pages/upload-story/index',
    path: '/upload-story',
    mate: {
      isMenu: true,
      icon: <DashboardOutlined />,
      label: '小说上传',
    },
  },
  'todo-list': {
    componentPath: './pages/todoList/index',
    path: '/todo-list',
    mate: {
      isMenu: true,
      icon: <DashboardOutlined />,
      label: 'todoList',
    },
  },
  echarts: {
    componentPath: './pages/echarts/index',
    path: '/echarts',
    mate: {
      isMenu: true,
      icon: <DashboardOutlined />,
      label: 'echarts',
    },
  },
};
